<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-3.6.3.min.js"></script>
		<script>
			$(function(){
				alert($(".c1").text());
				var str="";
				$.each($(".c1"),function(i,o){
					str+=$(o).text()+"#";
				});
				alert(str);
			});
		</script>
	</head>
	<body>
		<div class="c1">常以名是个好同志，精通原生js</div>
		<div class="c1">杨旭是个好同志，精通原生js</div>
	</body>
</html>